package com.wu.receiver;

import org.springframework.context.ApplicationEvent;

/**
 * 用户支付的一个接受者，然后观察者去处理自己对应的事务，事务之间不能相互影响
 * @author wudd
 * @time:2017年7月31日上午11:28:45
 */
public class UserPayReceiver extends ApplicationEvent{
	private static final long serialVersionUID = -7558641834199509170L;
	private String PayNo;
	private String text;
	private Integer amount;
	
	public UserPayReceiver(Object source, String payNo, String text,
			Integer amount) {
		super(source);
		this.PayNo = payNo;
		this.text = text;
		this.amount = amount;
	}
	public String getPayNo() {
		return PayNo;
	}
	public void setPayNo(String payNo) {
		PayNo = payNo;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Integer getAmount() {
		return amount;
	}
	public void setAmount(Integer amount) {
		this.amount = amount;
	}
	public UserPayReceiver(Object source) {
		super(source);
	}

}
